package jp.ne.hatena.d.digitalsoul.warikan.repositories

import jp.ne.hatena.d.digitalsoul.warikan.models._

object SlopeRepository {
	
	var chache = Map[Int, Slope]()
	
	def add(slope:Slope) = chache += (slope.id -> slope)
		
	def exists(id:Int):Boolean = chache.contains(id)
	
	def forSlopeId(id:Int):Slope = chache(id)
	
	def initialize = chache = Map[Int, Slope]()

}